package unit.entity;

import static org.junit.Assert.*;

import org.junit.Test;

import am.bll.entity.AccountBook;
import am.bll.entity.SystemConfig;

public class SystemConfigTester
{

    @Test
    public void testConstructor()
    {
        // case 01 一般
        SystemConfig s01 = new SystemConfig();
        AccountBook b01 = new AccountBook();
        s01.setDefaultBook(b01);
        s01.setMaxBookNum(99);

        assertSame(b01, s01.getDefaultBook());
        assertEquals(99, s01.getMaxBookNum());

        // case 02 默认值
        SystemConfig s02 = new SystemConfig();
        assertSame(null, s02.getDefaultBook());
        assertEquals(0, s02.getMaxBookNum());
    }

}
